(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["components/vk-data-goods-sku-popup/vk-data-goods-sku-popup"],{

/***/ 322:
/*!****************************************************************************!*\
  !*** ./src/components/vk-data-goods-sku-popup/vk-data-goods-sku-popup.vue ***!
  \****************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _vk_data_goods_sku_popup_vue_vue_type_template_id_1d216e7a_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./vk-data-goods-sku-popup.vue?vue&type=template&id=1d216e7a&scoped=true& */ 323);
/* harmony import */ var _vk_data_goods_sku_popup_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./vk-data-goods-sku-popup.vue?vue&type=script&lang=js& */ 325);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _vk_data_goods_sku_popup_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _vk_data_goods_sku_popup_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _vk_data_goods_sku_popup_vue_vue_type_style_index_0_id_1d216e7a_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./vk-data-goods-sku-popup.vue?vue&type=style&index=0&id=1d216e7a&lang=scss&scoped=true& */ 327);
/* harmony import */ var _node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);

var renderjs





/* normalize component */

var component = Object(_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
  _vk_data_goods_sku_popup_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  _vk_data_goods_sku_popup_vue_vue_type_template_id_1d216e7a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
  _vk_data_goods_sku_popup_vue_vue_type_template_id_1d216e7a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  "1d216e7a",
  null,
  false,
  _vk_data_goods_sku_popup_vue_vue_type_template_id_1d216e7a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
  renderjs
)

component.options.__file = "components/vk-data-goods-sku-popup/vk-data-goods-sku-popup.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 323:
/*!***********************************************************************************************************************!*\
  !*** ./src/components/vk-data-goods-sku-popup/vk-data-goods-sku-popup.vue?vue&type=template&id=1d216e7a&scoped=true& ***!
  \***********************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_15_0_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_vk_data_goods_sku_popup_vue_vue_type_template_id_1d216e7a_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--15-0!../../../node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./vk-data-goods-sku-popup.vue?vue&type=template&id=1d216e7a&scoped=true& */ 324);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_15_0_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_vk_data_goods_sku_popup_vue_vue_type_template_id_1d216e7a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_15_0_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_vk_data_goods_sku_popup_vue_vue_type_template_id_1d216e7a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_15_0_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_vk_data_goods_sku_popup_vue_vue_type_template_id_1d216e7a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_15_0_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_vk_data_goods_sku_popup_vue_vue_type_template_id_1d216e7a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });



/***/ }),

/***/ 324:
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--15-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./src/components/vk-data-goods-sku-popup/vk-data-goods-sku-popup.vue?vue&type=template&id=1d216e7a&scoped=true& ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
var components
try {
  components = {
    vkDataInputNumberBox: function () {
      return __webpack_require__.e(/*! import() | components/vk-data-input-number-box/vk-data-input-number-box */ "components/vk-data-input-number-box/vk-data-input-number-box").then(__webpack_require__.bind(null, /*! @/components/vk-data-input-number-box/vk-data-input-number-box.vue */ 399))
    },
  }
} catch (e) {
  if (
    e.message.indexOf("Cannot find module") !== -1 &&
    e.message.indexOf(".vue") !== -1
  ) {
    console.error(e.message)
    console.error("1. 排查组件名称拼写是否正确")
    console.error(
      "2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
    )
    console.error(
      "3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件"
    )
  } else {
    throw e
  }
}
var render = function () {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  var m0 = _vm.themeColorFn("priceColor")
  var g0 = _vm.selectArr.join(" ")
  var l1 = _vm.__map(_vm.goodsInfo[_vm.specListName], function (item, index1) {
    var $orig = _vm.__get_orig(item)
    var l0 = _vm.__map(item.list, function (item_value, index2) {
      var $orig = _vm.__get_orig(item_value)
      var s0 = _vm.__get_style([
        item_value.ishow ? "" : _vm.themeColorFn("disableStyle"),
        item_value.ishow ? _vm.themeColorFn("btnStyle") : "",
        _vm.subIndex[index1] == index2 ? _vm.themeColorFn("activedStyle") : "",
      ])
      return {
        $orig: $orig,
        s0: s0,
      }
    })
    return {
      $orig: $orig,
      l0: l0,
    }
  })
  var m1 =
    !(_vm.outFoStock || _vm.mode == 4) && _vm.mode == 1
      ? _vm.themeColorFn("addCartColor")
      : null
  var m2 =
    !(_vm.outFoStock || _vm.mode == 4) && _vm.mode == 1
      ? _vm.themeColorFn("addCartBackgroundColor")
      : null
  var m3 =
    !(_vm.outFoStock || _vm.mode == 4) && _vm.mode == 1
      ? _vm.themeColorFn("buyNowColor")
      : null
  var m4 =
    !(_vm.outFoStock || _vm.mode == 4) && _vm.mode == 1
      ? _vm.themeColorFn("buyNowBackgroundColor")
      : null
  var m5 =
    !(_vm.outFoStock || _vm.mode == 4) && !(_vm.mode == 1) && _vm.mode == 2
      ? _vm.themeColorFn("addCartColor")
      : null
  var m6 =
    !(_vm.outFoStock || _vm.mode == 4) && !(_vm.mode == 1) && _vm.mode == 2
      ? _vm.themeColorFn("addCartBackgroundColor")
      : null
  var m7 =
    !(_vm.outFoStock || _vm.mode == 4) &&
    !(_vm.mode == 1) &&
    !(_vm.mode == 2) &&
    _vm.mode == 3
      ? _vm.themeColorFn("buyNowColor")
      : null
  var m8 =
    !(_vm.outFoStock || _vm.mode == 4) &&
    !(_vm.mode == 1) &&
    !(_vm.mode == 2) &&
    _vm.mode == 3
      ? _vm.themeColorFn("buyNowBackgroundColor")
      : null
  _vm.$mp.data = Object.assign(
    {},
    {
      $root: {
        m0: m0,
        g0: g0,
        l1: l1,
        m1: m1,
        m2: m2,
        m3: m3,
        m4: m4,
        m5: m5,
        m6: m6,
        m7: m7,
        m8: m8,
      },
    }
  )
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true



/***/ }),

/***/ 325:
/*!*****************************************************************************************************!*\
  !*** ./src/components/vk-data-goods-sku-popup/vk-data-goods-sku-popup.vue?vue&type=script&lang=js& ***!
  \*****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_vk_data_goods_sku_popup_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/babel-loader/lib!../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./vk-data-goods-sku-popup.vue?vue&type=script&lang=js& */ 326);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_vk_data_goods_sku_popup_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_babel_loader_lib_index_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_vk_data_goods_sku_popup_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_babel_loader_lib_index_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_vk_data_goods_sku_popup_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_babel_loader_lib_index_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_vk_data_goods_sku_popup_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_vk_data_goods_sku_popup_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 326:
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./src/components/vk-data-goods-sku-popup/vk-data-goods-sku-popup.vue?vue&type=script&lang=js& ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

var vk; // vk依赖
var goodsCache = {}; // 本地商品缓存
var _default = {
  name: 'vk-data-goods-sku-popup',
  emits: ['update:modelValue', 'input', 'update-goods', 'open', 'close', 'add-cart', 'buy-now', 'cart', 'buy', 'num-change'],
  props: {
    // true 组件显示 false 组件隐藏
    value: {
      Type: Boolean,
      default: false
    },
    modelValue: {
      Type: Boolean,
      default: false
    },
    // vk云函数路由模式参数开始-----------------------------------------------------------
    // 商品id
    goodsId: {
      Type: String,
      default: ''
    },
    // vk路由模式框架下的云函数地址
    action: {
      Type: String,
      default: ''
    },
    // vk云函数路由模式参数结束-----------------------------------------------------------
    // 该商品已抢完时的按钮文字
    noStockText: {
      Type: String,
      default: '该商品已抢完'
    },
    // 库存文字
    stockText: {
      Type: String,
      default: '库存'
    },
    // 商品表id的字段名
    goodsIdName: {
      Type: String,
      default: '_id'
    },
    // sku表id的字段名
    skuIdName: {
      Type: String,
      default: '_id'
    },
    // sku_list的字段名
    skuListName: {
      Type: String,
      default: 'sku_list'
    },
    // spec_list的字段名
    specListName: {
      Type: String,
      default: 'spec_list'
    },
    // 库存的字段名 默认 stock
    stockName: {
      Type: String,
      default: 'stock'
    },
    // sku组合路径的字段名
    skuArrName: {
      Type: String,
      default: 'sku_name_arr'
    },
    // 默认单规格时的规格组名称
    defaultSingleSkuName: {
      Type: String,
      default: '默认'
    },
    // 模式 1:都显示  2:只显示购物车 3:只显示立即购买 4:显示缺货按钮 默认 1
    mode: {
      Type: Number,
      default: 1
    },
    // 点击遮罩是否关闭组件 true 关闭 false 不关闭 默认true
    maskCloseAble: {
      Type: Boolean,
      default: true
    },
    // 顶部圆角值
    borderRadius: {
      Type: [String, Number],
      default: 0
    },
    // 商品缩略图字段名(未选择sku时)
    goodsThumbName: {
      Type: [String],
      default: 'goods_thumb'
    },
    // 商品缩略图背景颜色，如#999999
    goodsThumbBackgroundColor: {
      Type: String,
      default: 'transparent'
    },
    // 最小购买数量 默认 1
    minBuyNum: {
      Type: [Number, String],
      default: 1
    },
    // 最大购买数量 默认 100000
    maxBuyNum: {
      Type: [Number, String],
      default: 100000
    },
    // 步进器步长 默认 1
    stepBuyNum: {
      Type: [Number, String],
      default: 1
    },
    // 是否只能输入 step 的倍数
    stepStrictly: {
      Type: Boolean,
      default: false
    },
    // 自定义获取商品信息的函数,支付宝小程序不支持该属性,请使用localdata属性
    customAction: {
      Type: [Function],
      default: null
    },
    // 本地数据源
    localdata: {
      type: Object
    },
    // 价格的字体颜色
    priceColor: {
      Type: String
    },
    // 立即购买按钮的文字
    buyNowText: {
      Type: String,
      default: '立即购买'
    },
    // 立即购买按钮的字体颜色
    buyNowColor: {
      Type: String
    },
    // 立即购买按钮的背景颜色
    buyNowBackgroundColor: {
      Type: String
    },
    // 加入购物车按钮的文字
    addCartText: {
      Type: String,
      default: '加入购物车'
    },
    // 加入购物车按钮的字体颜色
    addCartColor: {
      Type: String
    },
    // 加入购物车按钮的背景颜色
    addCartBackgroundColor: {
      Type: String
    },
    // 不可点击时,按钮的样式
    disableStyle: {
      Type: Object,
      default: null
    },
    // 按钮点击时的样式
    activedStyle: {
      Type: Object,
      default: null
    },
    // 按钮常态的样式
    btnStyle: {
      Type: Object,
      default: null
    },
    // 是否显示右上角关闭按钮
    showClose: {
      Type: Boolean,
      default: true
    },
    // 关闭按钮的图片地址 https://img.alicdn.com/imgextra/i1/121022687/O1CN01ImN0O11VigqwzpLiK_!!121022687.png
    closeImage: {
      Type: String,
      default: ''
    },
    // 是否隐藏库存显示
    hideStock: {
      Type: Boolean,
      default: false
    },
    // 颜色主题
    theme: {
      Type: String,
      default: 'default'
    },
    // 请求中的提示
    actionTips: {
      Type: String,
      default: '请求中...'
    },
    // 默认选中的SKU
    defaultSelect: {
      Type: Object
    },
    // 是否使用缓存
    useCache: {
      Type: Boolean,
      default: true
    },
    /**
     * 默认商品,设置该值可快速展示商品
     * 逻辑: 先展示 defaultGoods 信息,再取数据库,再更新页面(通常为更新库存)
     */
    defaultGoods: {
      Type: Object
    },
    /**
     * 金额是否需要除以100
     * 1:金额会除以100
     * 0:金额不会除以100
     */
    amountType: {
      Type: Number,
      default: 1
    },
    // 每次选择完SKU后，购买数量归1，如果有最小购买数量，则设置为最小购买数量
    selectedInit: {
      Type: Boolean,
      default: false
    },
    // 是否开启底部安全区适配，默认true
    safeAreaInsetBottom: {
      Type: Boolean,
      default: true
    }
  },
  data: function data() {
    return {
      complete: false,
      // 组件是否加载完成
      goodsInfo: {},
      // 商品信息
      isShow: false,
      // true 显示 false 隐藏
      initKey: true,
      // 是否已初始化
      shopItemInfo: {},
      // 存放要和选中的值进行匹配的数据
      selectArr: [],
      // 存放被选中的值
      subIndex: [],
      // 是否选中 因为不确定是多规格还是单规格，所以这里定义数组来判断
      selectShop: {},
      // 存放最后选中的商品
      selectNum: this.minBuyNum || 1,
      // 选中数量
      outFoStock: false,
      // 是否全部sku都缺货
      openTime: 0,
      themeColor: {
        // 默认主题
        default: {
          priceColor: 'rgb(254, 86, 10)',
          buyNowColor: '#ffffff',
          buyNowBackgroundColor: 'rgb(254, 86, 10)',
          addCartColor: '#ffffff',
          addCartBackgroundColor: 'rgb(255, 148, 2)',
          btnStyle: {
            color: '#333333',
            borderColor: '#f4f4f4',
            backgroundColor: '#ffffff'
          },
          activedStyle: {
            color: 'rgb(254, 86, 10)',
            borderColor: 'rgb(254, 86, 10)',
            backgroundColor: 'rgba(254,86,10,0.1)'
          },
          disableStyle: {
            color: '#c3c3c3',
            borderColor: '#f6f6f6',
            backgroundColor: '#f6f6f6'
          }
        },
        // 红黑主题
        'red-black': {
          priceColor: 'rgb(255, 68, 68)',
          buyNowColor: '#ffffff',
          buyNowBackgroundColor: 'rgb(255, 68, 68)',
          addCartColor: '#ffffff',
          addCartBackgroundColor: 'rgb(85, 85, 85)',
          activedStyle: {
            color: 'rgb(255, 68, 68)',
            borderColor: 'rgb(255, 68, 68)',
            backgroundColor: 'rgba(255,68,68,0.1)'
          }
        },
        // 黑白主题
        'black-white': {
          priceColor: 'rgb(47, 47, 52)',
          buyNowColor: '#ffffff',
          buyNowBackgroundColor: 'rgb(47, 47, 52)',
          addCartColor: 'rgb(47, 47, 52)',
          addCartBackgroundColor: 'rgb(235, 236, 242)',
          // btnStyle:{
          // 	color:"rgb(47, 47, 52)",
          // 	borderColor:"rgba(235,236,242,0.5)",
          // 	backgroundColor:"rgba(235,236,242,0.5)",
          // },
          activedStyle: {
            color: 'rgb(47, 47, 52)',
            borderColor: 'rgba(47,47,52,0.12)',
            backgroundColor: 'rgba(47,47,52,0.12)'
          }
        },
        // 咖啡色主题
        coffee: {
          priceColor: 'rgb(195, 167, 105)',
          buyNowColor: '#ffffff',
          buyNowBackgroundColor: 'rgb(195, 167, 105)',
          addCartColor: 'rgb(195, 167, 105)',
          addCartBackgroundColor: 'rgb(243, 238, 225)',
          activedStyle: {
            color: 'rgb(195, 167, 105)',
            borderColor: 'rgb(195, 167, 105)',
            backgroundColor: 'rgba(195, 167, 105,0.1)'
          }
        },
        // 浅绿色主题
        green: {
          priceColor: 'rgb(99, 190, 114)',
          buyNowColor: '#ffffff',
          buyNowBackgroundColor: 'rgb(99, 190, 114)',
          addCartColor: 'rgb(99, 190, 114)',
          addCartBackgroundColor: 'rgb(225, 244, 227)',
          activedStyle: {
            color: 'rgb(99, 190, 114)',
            borderColor: 'rgb(99, 190, 114)',
            backgroundColor: 'rgba(99, 190, 114,0.1)'
          }
        }
      }
    };
  },
  created: function created() {
    var that = this;
    vk = that.vk;
    if (that.valueCom) {
      that.open();
    }
  },
  mounted: function mounted() {},
  methods: {
    // 初始化
    init: function init(notAutoClick) {
      var that = this;
      // 清空之前的数据
      that.selectArr = [];
      that.subIndex = [];
      that.selectShop = {};
      that.selectNum = that.minBuyNum || 1;
      that.outFoStock = false;
      that.shopItemInfo = {};
      var specListName = that.specListName;
      that.goodsInfo[specListName].map(function (item) {
        that.selectArr.push('');
        that.subIndex.push(-1);
      });
      that.checkItem(); // 计算sku里面规格形成路径
      that.checkInpath(-1); // 传-1是为了不跳过循环
      if (!notAutoClick) that.autoClickSku(); // 自动选择sku策略
    },
    // 使用vk路由模式框架获取商品信息
    findGoodsInfo: function findGoodsInfo() {
      var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
      var that = this;
      var useCache = obj.useCache;
      if (typeof vk == 'undefined') {
        that.toast('custom-action必须是function', 'none');
        return false;
      }
      var actionTips = that.actionTips;
      var actionTitle = '';
      var actionAoading = false;
      if (actionTips !== 'custom') {
        actionTitle = useCache ? '' : '请求中...';
      } else {
        actionAoading = useCache ? false : true;
      }
      vk.callFunction({
        url: that.action,
        title: actionTitle,
        loading: actionAoading,
        data: {
          goods_id: that.goodsId
        },
        success: function success(data) {
          that.updateGoodsInfo(data.goodsInfo);
          // 更新缓存
          goodsCache[that.goodsId] = data.goodsInfo;
          that.$emit('update-goods', data.goodsInfo);
        },
        fail: function fail() {
          that.updateValue(false);
        }
      });
    },
    updateValue: function updateValue(value) {
      var that = this;
      if (value) {
        that.$emit('open', true);
        that.$emit('input', true);
        that.$emit('update:modelValue', true);
      } else {
        that.$emit('input', false);
        that.$emit('close', 'close');
        that.$emit('update:modelValue', false);
      }
    },
    // 更新商品信息(库存、名称、图片)
    updateGoodsInfo: function updateGoodsInfo(goodsInfo) {
      var that = this;
      // goodsInfo.sku_list.map((item, index) => {
      // 	item.sku_name_arr = ["20ml/瓶"];
      // });
      var skuListName = that.skuListName;
      if (JSON.stringify(that.goodsInfo) === '{}' || that.goodsInfo[that.goodsIdName] !== goodsInfo[that.goodsIdName]) {
        that.goodsInfo = goodsInfo;
        that.initKey = true;
      } else {
        that.goodsInfo[skuListName] = goodsInfo[skuListName];
      }
      if (that.initKey) {
        that.initKey = false;
        that.init();
      }
      // 更新选中sku的库存信息
      var select_sku_info = that.getListItem(that.goodsInfo[skuListName], that.skuIdName, that.selectShop[that.skuIdName]);
      Object.assign(that.selectShop, select_sku_info);
      that.defaultSelectSku();
      that.complete = true;
    },
    open: function open() {
      var _this = this;
      return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
        var that, findGoodsInfoRun, skuListName, useCache, goodsInfo, _err$message, message;
        return _regeneratorRuntime().wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                that = _this;
                that.openTime = new Date().getTime();
                findGoodsInfoRun = true;
                skuListName = that.skuListName; // 先获取缓存中的商品信息
                useCache = false;
                goodsInfo = goodsCache[that.goodsId];
                if (goodsInfo && that.useCache) {
                  useCache = true;
                  that.updateGoodsInfo(goodsInfo);
                } else {
                  that.complete = false;
                }
                if (!(that.customAction && typeof that.customAction === 'function')) {
                  _context.next = 33;
                  break;
                }
                _context.prev = 8;
                _context.next = 11;
                return that.customAction({
                  useCache: useCache,
                  goodsId: that.goodsId,
                  goodsInfo: goodsInfo,
                  close: function close() {
                    setTimeout(function () {
                      that.close();
                    }, 500);
                  }
                }).catch(function (err) {
                  setTimeout(function () {
                    that.close();
                  }, 500);
                });
              case 11:
                goodsInfo = _context.sent;
                _context.next = 21;
                break;
              case 14:
                _context.prev = 14;
                _context.t0 = _context["catch"](8);
                _err$message = _context.t0.message, message = _err$message === void 0 ? '' : _err$message;
                if (!(message.indexOf('.catch is not a function') > -1)) {
                  _context.next = 21;
                  break;
                }
                that.toast('custom-action必须返回一个Promise', 'none');
                setTimeout(function () {
                  that.close();
                }, 500);
                return _context.abrupt("return", false);
              case 21:
                // 更新缓存
                goodsCache[that.goodsId] = goodsInfo;
                if (!(goodsInfo && _typeof(goodsInfo) == 'object' && JSON.stringify(goodsInfo) != '{}')) {
                  _context.next = 28;
                  break;
                }
                findGoodsInfoRun = false;
                that.updateGoodsInfo(goodsInfo);
                that.updateValue(true);
                _context.next = 31;
                break;
              case 28:
                that.toast('未获取到商品信息', 'none');
                that.$emit('input', false);
                return _context.abrupt("return", false);
              case 31:
                _context.next = 47;
                break;
              case 33:
                if (!(typeof that.localdata !== 'undefined' && that.localdata !== null)) {
                  _context.next = 46;
                  break;
                }
                goodsInfo = that.localdata;
                if (!(goodsInfo && _typeof(goodsInfo) == 'object' && JSON.stringify(goodsInfo) != '{}')) {
                  _context.next = 41;
                  break;
                }
                findGoodsInfoRun = false;
                that.updateGoodsInfo(goodsInfo);
                that.updateValue(true);
                _context.next = 44;
                break;
              case 41:
                that.toast('未获取到商品信息', 'none');
                that.$emit('input', false);
                return _context.abrupt("return", false);
              case 44:
                _context.next = 47;
                break;
              case 46:
                if (findGoodsInfoRun) that.findGoodsInfo({
                  useCache: useCache
                });
              case 47:
              case "end":
                return _context.stop();
            }
          }
        }, _callee, null, [[8, 14]]);
      }))();
    },
    // 监听 - 弹出层收起
    close: function close(s) {
      var that = this;
      if (new Date().getTime() - that.openTime < 400) {
        return false;
      }
      if (s == 'mask') {
        if (that.maskCloseAble !== false) {
          that.$emit('input', false);
          that.$emit('close', 'mask');
          that.$emit('update:modelValue', false);
        }
      } else {
        that.$emit('input', false);
        that.$emit('close', 'close');
        that.$emit('update:modelValue', false);
      }
    },
    moveHandle: function moveHandle() {
      //禁止父元素滑动
    },
    // sku按钮的点击事件
    skuClick: function skuClick(value, index1, index2) {
      var that = this;
      if (value.ishow) {
        if (that.selectArr[index1] != value.name) {
          that.$set(that.selectArr, index1, value.name);
          that.$set(that.subIndex, index1, index2);
        } else {
          that.$set(that.selectArr, index1, '');
          that.$set(that.subIndex, index1, -1);
        }
        that.checkInpath(index1);
        // 如果全部选完
        that.checkSelectShop();
      }
    },
    // 检测是否已经选完sku
    checkSelectShop: function checkSelectShop() {
      var that = this;
      // 如果全部选完
      if (that.selectArr.every(function (item) {
        return item != '';
      })) {
        that.selectShop = that.shopItemInfo[that.getArrayToSting(that.selectArr)];
        var stock = that.selectShop[that.stockName];
        if (typeof stock !== 'undefined' && that.selectNum > stock) {
          that.selectNum = stock;
        }
        if (that.selectNum > that.maxBuyNum) {
          that.selectNum = that.maxBuyNum;
        }
        if (that.selectNum < that.minBuyNum) {
          that.selectNum = that.minBuyNum;
        }
        if (that.selectedInit) {
          that.selectNum = that.minBuyNum || 1;
        }
      } else {
        that.selectShop = {};
      }
    },
    // 检查路径
    checkInpath: function checkInpath(clickIndex) {
      var that = this;
      var specListName = that.specListName;
      //console.time('筛选可选路径需要的时间是');
      //循环所有属性判断哪些属性可选
      //当前选中的兄弟节点和已选中属性不需要循环
      var specList = that.goodsInfo[specListName];
      for (var i = 0, len = specList.length; i < len; i++) {
        if (i == clickIndex) {
          continue;
        }
        var len2 = specList[i].list.length;
        for (var j = 0; j < len2; j++) {
          if (that.subIndex[i] != -1 && j == that.subIndex[i]) {
            continue;
          }
          var choosed_copy = _toConsumableArray(that.selectArr);
          that.$set(choosed_copy, i, specList[i].list[j].name);
          var choosed_copy2 = choosed_copy.filter(function (item) {
            return item !== '' && typeof item !== 'undefined';
          });
          if (that.shopItemInfo.hasOwnProperty(that.getArrayToSting(choosed_copy2))) {
            specList[i].list[j].ishow = true;
          } else {
            specList[i].list[j].ishow = false;
          }
        }
      }
      that.$set(that.goodsInfo, specListName, specList);
      // console.timeEnd('筛选可选路径需要的时间是');
    },
    // 计算sku里面规格形成路径
    checkItem: function checkItem() {
      var that = this;
      // console.time('计算有多小种可选路径需要的时间是');
      var stockName = that.stockName;
      var skuListName = that.skuListName;
      // 去除库存小于等于0的商品sku
      var originalSkuList = that.goodsInfo[skuListName];
      var skuList = [];
      var stockNum = 0;
      originalSkuList.map(function (skuItem, index) {
        if (skuItem[stockName] > 0) {
          skuList.push(skuItem);
          stockNum += skuItem[stockName];
        }
      });
      if (stockNum <= 0) {
        that.outFoStock = true;
      }
      // 计算有多小种可选路径
      var result = skuList.reduce(function (arrs, items) {
        return arrs.concat(items[that.skuArrName].reduce(function (arr, item) {
          return arr.concat(arr.map(function (item2) {
            // 利用对象属性的唯一性实现二维数组去重
            //console.log(1,that.shopItemInfo,that.getArrayToSting([...item2, item]),item2,item,items);
            if (!that.shopItemInfo.hasOwnProperty(that.getArrayToSting([].concat(_toConsumableArray(item2), [item])))) {
              that.shopItemInfo[that.getArrayToSting([].concat(_toConsumableArray(item2), [item]))] = items;
            }
            return [].concat(_toConsumableArray(item2), [item]);
          }));
        }, [[]]));
      }, [[]]);
      // console.timeEnd('计算有多小种可选路径需要的时间是');
    },
    getArrayToSting: function getArrayToSting(arr) {
      var str = '';
      arr.map(function (item, index) {
        item = item.replace(/\./g, '。');
        if (index == 0) {
          str += item;
        } else {
          str += ',' + item;
        }
      });
      return str;
    },
    // 检测sku选项是否已全部选完,且有库存
    checkSelectComplete: function checkSelectComplete() {
      var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
      var that = this;
      var clickTime = new Date().getTime();
      if (that.clickTime && clickTime - that.clickTime < 400) {
        return false;
      }
      that.clickTime = clickTime;
      var selectShop = that.selectShop,
        selectNum = that.selectNum,
        stockText = that.stockText,
        stockName = that.stockName;
      if (!selectShop || !selectShop[that.skuIdName]) {
        that.toast('请先选择对应规格', 'none');
        return false;
      }
      if (selectNum <= 0) {
        that.toast('购买数量必须>0', 'none');
        return false;
      }
      // 判断库存
      if (selectNum > selectShop[stockName]) {
        that.toast(stockText + '不足', 'none');
        return false;
      }
      if (typeof obj.success == 'function') obj.success(selectShop);
    },
    // 加入购物车
    addCart: function addCart() {
      var that = this;
      that.checkSelectComplete({
        success: function success(selectShop) {
          selectShop.buy_num = that.selectNum;
          that.$emit('add-cart', selectShop);
          that.$emit('cart', selectShop);
          // setTimeout(function() {
          // 	that.init();
          // }, 300);
        }
      });
    },
    // 立即购买
    buyNow: function buyNow() {
      var that = this;
      that.checkSelectComplete({
        success: function success(selectShop) {
          selectShop.buy_num = that.selectNum;
          that.$emit('buy-now', selectShop);
          that.$emit('buy', selectShop);
        }
      });
    },
    // 弹窗
    toast: function toast(title, icon) {
      uni.showToast({
        title: title,
        icon: icon
      });
    },
    // 获取对象数组中的某一个item,根据指定的键值
    getListItem: function getListItem(list, key, value) {
      var that = this;
      var item;
      for (var i in list) {
        if (_typeof(value) == 'object') {
          if (JSON.stringify(list[i][key]) === JSON.stringify(value)) {
            item = list[i];
            break;
          }
        } else {
          if (list[i][key] === value) {
            item = list[i];
            break;
          }
        }
      }
      return item;
    },
    getListIndex: function getListIndex(list, key, value) {
      var that = this;
      var index = -1;
      for (var i = 0; i < list.length; i++) {
        if (list[i][key] === value) {
          index = i;
          break;
        }
      }
      return index;
    },
    // 自动选择sku前提是只有一组sku,默认自动选择最前面的有库存的sku
    autoClickSku: function autoClickSku() {
      var that = this;
      var stockName = that.stockName;
      var skuList = that.goodsInfo[that.skuListName];
      var specListArr = that.goodsInfo[that.specListName];
      if (specListArr.length == 1) {
        var specList = specListArr[0].list;
        for (var i = 0; i < specList.length; i++) {
          var sku = that.getListItem(skuList, that.skuArrName, [specList[i].name]);
          if (sku && sku[stockName] > 0) {
            that.skuClick(specList[i], 0, i);
            break;
          }
        }
      }
    },
    // 主题颜色
    themeColorFn: function themeColorFn(name) {
      var that = this;
      var theme = that.theme,
        themeColor = that.themeColor;
      var color = that[name] ? that[name] : themeColor[theme][name];
      return color;
    },
    defaultSelectSku: function defaultSelectSku() {
      var that = this;
      var defaultSelect = that.defaultSelect;
      if (defaultSelect && defaultSelect.sku && defaultSelect.sku.length > 0) {
        that.selectSku(defaultSelect);
      }
    },
    /**
    	 * 主动方法 - 设置sku
    	that.$refs.skuPopup.selectSku({
    		sku:["红色","256G","公开版"],
    		num:5
    	});
    	 */
    selectSku: function selectSku() {
      var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
      var that = this;
      var skuArr = obj.sku,
        selectNum = obj.num;
      var specListArr = that.goodsInfo[that.specListName];
      if (skuArr && specListArr.length === skuArr.length) {
        // 先清空
        var skuClickArr = [];
        var clickKey = true;
        for (var index = 0; index < skuArr.length; index++) {
          var skuName = skuArr[index];
          var specList = specListArr[index].list;
          var index1 = index;
          var index2 = that.getListIndex(specList, 'name', skuName);
          if (index2 == -1) {
            clickKey = false;
            break;
          }
          skuClickArr.push({
            spec: specList[index2],
            index1: index1,
            index2: index2
          });
        }
        if (clickKey) {
          that.init(true);
          skuClickArr.map(function (item) {
            that.skuClick(item.spec, item.index1, item.index2);
          });
        }
      }
      if (selectNum > 0) that.selectNum = selectNum;
    },
    priceFilter: function priceFilter() {
      var n = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
      var that = this;
      if (typeof n == 'string') {
        n = parseFloat(n);
      }
      if (that.amountType === 0) {
        return n.toFixed(2);
      } else {
        return (n / 100).toFixed(2);
      }
    },
    pushGoodsCache: function pushGoodsCache(goodsInfo) {
      var that = this;
      var goodsIdName = that.goodsIdName;
      goodsCache[goodsInfo[goodsIdName]] = goodsInfo;
    },
    // 用于阻止冒泡
    stop: function stop() {},
    // 图片预览
    previewImage: function previewImage() {
      var that = this;
      var selectShop = that.selectShop,
        goodsInfo = that.goodsInfo,
        goodsThumbName = that.goodsThumbName;
      var src = selectShop.image ? selectShop.image : goodsInfo[goodsThumbName];
      if (src) {
        uni.previewImage({
          urls: [src]
        });
      }
    },
    getMaxStock: function getMaxStock() {
      var maxStock = 0;
      var that = this;
      var _that$selectShop = that.selectShop,
        selectShop = _that$selectShop === void 0 ? {} : _that$selectShop,
        _that$goodsInfo = that.goodsInfo,
        goodsInfo = _that$goodsInfo === void 0 ? {} : _that$goodsInfo,
        skuListName = that.skuListName,
        stockName = that.stockName;
      if (selectShop[stockName]) {
        maxStock = selectShop[stockName];
      } else {
        var skuList = goodsInfo[skuListName];
        if (skuList && skuList.length > 0) {
          var valueArr = [];
          skuList.map(function (skuItem, index) {
            valueArr.push(skuItem[stockName]);
          });
          var max = Math.max.apply(Math, valueArr);
          maxStock = max;
        }
      }
      return maxStock;
    },
    numChange: function numChange(e) {
      this.$emit("num-change", e.value);
    }
  },
  // 计算属性
  computed: {
    valueCom: function valueCom() {
      return this.value;
    },
    // 最大购买数量
    maxBuyNumCom: function maxBuyNumCom() {
      var that = this;
      var maxStock = that.getMaxStock();
      var max = that.maxBuyNum || 100000;
      // 最大购买量不能超过当前商品的库存
      if (max > maxStock) {
        max = maxStock;
      }
      return max;
    },
    // 是否是多规格
    isManyCom: function isManyCom() {
      var that = this;
      var goodsInfo = that.goodsInfo,
        defaultSingleSkuName = that.defaultSingleSkuName,
        specListName = that.specListName;
      var isMany = true;
      if (goodsInfo[specListName] && goodsInfo[specListName].length === 1 && goodsInfo[specListName][0].list.length === 1 && goodsInfo[specListName][0].name === defaultSingleSkuName) {
        isMany = false;
      }
      return isMany;
    },
    // 默认价格区间计算
    priceCom: function priceCom() {
      var str = '';
      var that = this;
      var _that$selectShop2 = that.selectShop,
        selectShop = _that$selectShop2 === void 0 ? {} : _that$selectShop2,
        _that$goodsInfo2 = that.goodsInfo,
        goodsInfo = _that$goodsInfo2 === void 0 ? {} : _that$goodsInfo2,
        skuListName = that.skuListName,
        skuIdName = that.skuIdName;
      if (selectShop[skuIdName]) {
        str = that.priceFilter(selectShop.price);
      } else {
        var skuList = goodsInfo[skuListName];
        if (skuList && skuList.length > 0) {
          var valueArr = [];
          skuList.map(function (skuItem, index) {
            valueArr.push(skuItem.price);
          });
          var min = that.priceFilter(Math.min.apply(Math, valueArr));
          var max = that.priceFilter(Math.max.apply(Math, valueArr));
          if (min === max) {
            str = min + '';
          } else {
            str = "".concat(min, " - ").concat(max);
          }
        }
      }
      return str;
    },
    // 库存显示
    stockCom: function stockCom() {
      var str = '';
      var that = this;
      var _that$selectShop3 = that.selectShop,
        selectShop = _that$selectShop3 === void 0 ? {} : _that$selectShop3,
        _that$goodsInfo3 = that.goodsInfo,
        goodsInfo = _that$goodsInfo3 === void 0 ? {} : _that$goodsInfo3,
        skuListName = that.skuListName,
        stockName = that.stockName;
      if (selectShop[stockName]) {
        str = selectShop[stockName];
      } else {
        var skuList = goodsInfo[skuListName];
        if (skuList && skuList.length > 0) {
          var valueArr = [];
          skuList.map(function (skuItem, index) {
            valueArr.push(skuItem[stockName]);
          });
          var min = Math.min.apply(Math, valueArr);
          var max = Math.max.apply(Math, valueArr);
          if (min === max) {
            str = min;
          } else {
            str = "".concat(min, " - ").concat(max);
          }
        }
      }
      return str;
    }
  },
  watch: {
    valueCom: function valueCom(newVal, oldValue) {
      var that = this;
      if (newVal) {
        that.open();
      }
    },
    defaultGoods: {
      immediate: true,
      handler: function handler(newVal, oldValue) {
        var that = this;
        var goodsIdName = that.goodsIdName;
        if (_typeof(newVal) === 'object' && newVal && newVal[goodsIdName] && !goodsCache[newVal[goodsIdName]]) {
          that.pushGoodsCache(newVal);
        }
      }
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))

/***/ }),

/***/ 327:
/*!**************************************************************************************************************************************!*\
  !*** ./src/components/vk-data-goods-sku-popup/vk-data-goods-sku-popup.vue?vue&type=style&index=0&id=1d216e7a&lang=scss&scoped=true& ***!
  \**************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_9_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_3_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_9_oneOf_1_4_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_9_oneOf_1_5_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_vk_data_goods_sku_popup_vue_vue_type_style_index_0_id_1d216e7a_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--9-oneOf-1-2!../../../node_modules/postcss-loader/src??ref--9-oneOf-1-3!../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--9-oneOf-1-4!../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--9-oneOf-1-5!../../../node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./vk-data-goods-sku-popup.vue?vue&type=style&index=0&id=1d216e7a&lang=scss&scoped=true& */ 328);
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_9_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_3_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_9_oneOf_1_4_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_9_oneOf_1_5_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_vk_data_goods_sku_popup_vue_vue_type_style_index_0_id_1d216e7a_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_9_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_3_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_9_oneOf_1_4_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_9_oneOf_1_5_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_vk_data_goods_sku_popup_vue_vue_type_style_index_0_id_1d216e7a_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_9_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_3_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_9_oneOf_1_4_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_9_oneOf_1_5_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_vk_data_goods_sku_popup_vue_vue_type_style_index_0_id_1d216e7a_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_9_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_3_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_9_oneOf_1_4_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_9_oneOf_1_5_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_vk_data_goods_sku_popup_vue_vue_type_style_index_0_id_1d216e7a_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_9_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_3_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_9_oneOf_1_4_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_9_oneOf_1_5_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_vk_data_goods_sku_popup_vue_vue_type_style_index_0_id_1d216e7a_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 328:
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--9-oneOf-1-2!./node_modules/postcss-loader/src??ref--9-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--9-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--9-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./src/components/vk-data-goods-sku-popup/vk-data-goods-sku-popup.vue?vue&type=style&index=0&id=1d216e7a&lang=scss&scoped=true& ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin
    if(false) { var cssReload; }
  

/***/ })

}]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/vk-data-goods-sku-popup/vk-data-goods-sku-popup.js.map
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/vk-data-goods-sku-popup/vk-data-goods-sku-popup-create-component',
    {
        'components/vk-data-goods-sku-popup/vk-data-goods-sku-popup-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('1')['createComponent'](__webpack_require__(322))
        })
    },
    [['components/vk-data-goods-sku-popup/vk-data-goods-sku-popup-create-component']]
]);
